﻿Imports Trinkets.Core

Public Class WindowGenerator

    Private Sub New()

    End Sub

    Public Shared Function GenerateInsertWindow(ByVal database As CsvDatabase, ByVal table As TableSchema) As EditWindow
        Return EditWindow.Generate(database, table)
    End Function

    Public Shared Function GenerateEditWindow(ByVal database As CsvDatabase, ByVal table As TableSchema, ByVal existingRecord As BaseEntity) As EditWindow
        Return EditWindow.Generate(database, table, existingRecord)
    End Function

    Public Shared Function GenerateListWindow(ByVal database As CsvDatabase, ByVal table As TableSchema) As ListWindow
        Return ListWindow.Generate(database, table)
    End Function

End Class
